-- GENERATED SPELL FOR [Scarlet Protector] --


function spell0_4292(pUnit, Event) --@Devotion Aura,Self--
pUnit:FullCastSpellOnTarget(8258,pUnit)
pUnit:RegisterEvent('Sorts_4292', 568, 1)
end

function spell1_4292(pUnit, Event) --@Holy Light,Heal--
pUnit:FullCastSpellOnTarget(31713,pUnit)
pUnit:RegisterEvent('Sorts_4292', 2500, 1)
end

function Sorts_4292(pUnit, Event)
local choix_sorts_4292 = math.random(0, 1)
if choix_sorts_4292 == 0 then
pUnit:RegisterEvent('spell0_4292', 1, 1)
end
if choix_sorts_4292 == 1 then
pUnit:RegisterEvent('spell1_4292', 1, 1)
end
end

function mob4292_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4292', math.random(1500, 3000), 1)
end

function mob4292_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4292_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4292_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4292, 1, 'mob4292_Action')
RegisterUnitEvent(4292, 2, 'mob4292_Leave')
RegisterUnitEvent(4292, 3, 'mob4292_Kill')
RegisterUnitEvent(4292, 4, 'mob4292_Die')
